﻿using netDxf.Entities;
using MCPlatform.Dxf.Interfaces;
using MCPlatform.Dxf.Entities;

namespace MCPlatform.Dxf.Factories
{
    public class ArcPathEntityFactory : IPathEntityFactory
    {
        public PathEntityBase CreatePathEntity(EntityObject entity)
        {
            if (entity is Arc)
            {
                return new ArcPathEntity((Arc)entity);
            }
            else
            {
                throw new ArgumentException("The entity is not an Arc");
            }
        }

       

        public Type GetHandledType()
        {
            return typeof(Arc);
        }
    }
}
